<?php
	defined('_JEXEC') or die;
?>

				<p><b>You have uploaded: <?php echo $this->totalFile; ?> files</b><strong>&nbsp;&nbsp;&nbsp;Order by
				<select name="sort" disabled="disabled">
										  <option value="0">Newest to Oldest</option>
										  <option value="0">Oldest to Newest</option>
										  <option value="0">Name A-Z</option>
										  <option value="0">Name Z-A</option>
										</select>
				</strong></p>
									  <table border="1">
<?php foreach($this->results as $file) : ?>
				  <tr>
					<td><p><?php echo $file->id; ?>. <a href="<?php echo JRoute::_($file->url); ?>"><?php echo $file->name; ?></a>: <?php echo $file->description; ?></p>
					  <p>Last update: <?php echo $file->lastupdateon; ?></p></td>
					<td><a href="<?php echo JRoute::_('index.php?option=com_volunteer&view=filedetail&fileid=' . $file->id); ?>">View</a>&nbsp;<a href="<?php echo JRoute::_('index.php?option=com_volunteer&view=editfile&fileid=' . $file->id); ?>">Edit</a>&nbsp;<a href="<?php echo JRoute::_('index.php?option=com_volunteer&task=deletefile&fileid=' . $file->id); ?>" onclick="javascript: return confirm('Delete this file?');">Delete</a></td>
				  </tr>
<?php endforeach; ?>
				</table>

					  
						<div class="pagination">
							<?php echo $this->pagination->getPagesLinks(); ?>
				  </div>